]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspace: Use the scaled width when calculating the total width
authorJasper St. Pierre <jstpierre@mecheye.net>
Thu, 28 Feb 2013 21:01:15 +0000 (16:01 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Thu, 28 Feb 2013 23:13:50 +0000 (18:13 -0500)
This is a small inconsistency I found in the code after review.

https://bugzilla.gnome.org/show_bug.cgi?id=694902

js/ui/workspace.js

index 06b9dbfd85797a7aee21ecf6a898a43573d362b9..abc42202a95b7f3095f23717f22477808dc2483b 100644 (file)
@@ -815,7 +815,9 @@ const UnalignedLayoutStrategy = new Lang.Class({
         let rows = [];
         let totalWidth = 0;
         for (let i = 0; i < windows.length; i++) {
-            totalWidth += windows[i].actor.width;
+            let window = windows[i];
+            let s = this._computeWindowScale(window);
+            totalWidth += window.actor.width * s;
         }
 
         let idealRowWidth = totalWidth / numRows;